/**
 * Copyright (C), 2015-2018, 成都启迪信息技术有限公司
 * FileName: WlReport
 * Author:   sjkyll
 * Date:     2018-09-21 14:19
 * Description:
 * <author>          <time>          <version>          <desc>
 * 作者姓名         修改时间           版本号            描述
 */
package com.cdqidi.smsservice.domain;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 〈一句话功能简述〉<br> 
 *
 * @author sjkyll
 * @create 2018-09-21 14:19
 * @since 1.0.0
 */
@Entity
@Table(name = "wl_report", schema = "smapp")
public class WlReport {

    private long id;
    private String msgid;
    private String phone;
    private String reportResultInfo;
    private String clientMsgId;
    private Integer flag;
    private Timestamp tjsj;

    @Id
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "msgid")
    public String getMsgid() {
        return msgid;
    }

    public void setMsgid(String msgid) {
        this.msgid = msgid;
    }

    @Basic
    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Basic
    @Column(name = "reportResultInfo")
    public String getReportResultInfo() {
        return reportResultInfo;
    }

    public void setReportResultInfo(String reportResultInfo) {
        this.reportResultInfo = reportResultInfo;
    }

    @Basic
    @Column(name = "clientMsgId")
    public String getClientMsgId() {
        return clientMsgId;
    }

    public void setClientMsgId(String clientMsgId) {
        this.clientMsgId = clientMsgId;
    }

    @Basic
    @Column(name = "flag")
    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        WlReport wlReport = (WlReport) o;
        return id == wlReport.id &&
                Objects.equals(msgid, wlReport.msgid) &&
                Objects.equals(phone, wlReport.phone) &&
                Objects.equals(reportResultInfo, wlReport.reportResultInfo) &&
                Objects.equals(clientMsgId, wlReport.clientMsgId) &&
                Objects.equals(flag, wlReport.flag);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, msgid, phone, reportResultInfo, clientMsgId, flag);
    }

    @Basic
    @Column(name = "tjsj")
    public Timestamp getTjsj() {
        return tjsj;
    }

    public void setTjsj(Timestamp tjsj) {
        this.tjsj = tjsj;
    }
}